package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 景区评论表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "jingqucomment")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Jingqucomment {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 编号,

	@Column(name = "jqid", length = 50)
	private String jqid;// 景区id
	
	@Column(name = "uid", length = 50)
	private String uid;// 用户id

	@Column(name = "submittime", length = 50)
	private String submittime;// 评论发布时间

	@Column(name = "content", length = 50)
	private String content;// 评论内容
	
	@Column(name = "flag", length = 50)
	private String flag;// 0-好评  1-中评  2差评

	@Transient
	private List<Jingqucommentphoto> jingqucommentphotos;// 评论图片列表
	
	@Transient
	private User user;
	
	@Transient
	private List<JqcommentsReply> cJqcommentsReplies;//评论的回复
	
	@Transient
	private String praisecount;//点赞数
	
	@Transient
	private String ifpraise;//是否点赞
	
	@Transient
	private Integer replycount;//评论的回复个数
}
